import request from '../../utils/request';

export const shopItemPage = query => {
    return request({
        url: '/shopItem/page',
        method: 'get',
        params: query
    });
};

export const shopItemInfo = data => {
    return request({
        url: '/shopItem/info/' + data,
        method: 'get'
    });
};

export const shopItemSave = data => {
    return request({
        url: '/shopItem/save',
        method: 'post',
        data: data
    });
};

export const shopItemUpdate = data => {
    return request({
        url: '/shopItem/update',
        method: 'put',
        data: data
    });
};

export const shopItemUpdateSpecs = data => {
    return request({
        url: '/shopItem/updateSpecs',
        method: 'put',
        data: data
    });
};

export const shopItemDelete = data => {
    return request({
        url: '/shopItem/delete/' + data,
        method: 'delete'
    });
};